<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/taglibs.jsp"%>
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">  
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link href="${ctx}/resources/semanticui/semantic.min.css" rel="stylesheet" type="text/css" />
    <link href="${ctx}/resources/apps.css" rel="stylesheet" type="text/css" />
    <title>推荐确认</title>  
</head>
<body>
<div class="ui segment" id="n-page">
&nbsp;<br>
&nbsp;<br>
<h3 class="ui attached header" id="list-title">
    推荐确认
</h3>
&nbsp;<br>
&nbsp;<br>
谢谢你为我们推荐人才。&nbsp;<br>&nbsp;<br>

&nbsp;<br>
<img class="ui image" src="${ctx}/rs/${resume}.jpg">

<div class="ui center aligned segment" id="choice-buttons"> 
        <div class="two ui buttons"> 
            <div class="ui button active dog" id="next">我的推荐</div> 
            <div class="ui button active dog" id="closeit">关闭</div> 
        </div>
    </div>

</div>

<!--
<div class="ui segment" id="btn-next">
    <div class="fluid ui button" id="next">查看“我的推荐”</div>
</div>
-->


<script src="${ctx}/resources/jweixin-1.0.0.js"></script>

<script src="${ctx}/resources/semanticui/jquery-2.1.4.min.js"></script>
<script src="${ctx}/resources/semanticui/semantic.js" type="text/javascript"></script>
<script type="text/javascript">

wx.config({
    debug: false, 
    appId: "${config.appid}",  
    timestamp: ${config.currenttimestamp},  
    nonceStr: "${config.nonceStr}", 
    signature: "${config.signatureStr}", 
    jsApiList: ['checkJsApi',
        'onMenuShareTimeline',
        'onMenuShareAppMessage',
        'onMenuShareQQ',
        'onMenuShareWeibo',
        'closeWindow']  
});

    var handler = { 
        activate: function() { 
            $(this).addClass('active').siblings().removeClass('active'); 

            if($(this).attr('id') == 'next') {
                location.href = '${ctx}/wechat/headhunter/recommend/main.page';
            }

            if($(this).attr('id') == 'closeit') {
                wx.closeWindow();
            }
        } 
    };

    $(document).ready(function() { 
        wx.ready(function(){
            $('.button').on('click', handler.activate);

            wx.onMenuShareAppMessage({
                title: 'Headoffer--专业招聘平台----推荐有奖！',  
                desc: '搭起企业和专业猎头的桥梁，为企业招募英才。',  
                link: 'http://www.tiaonali.com${ctx}/wechat/hunter/shareservice.page',  
                imgUrl: 'http://www.tiaonali.com${ctx}/resources/images/sharelogo.jpg',  
                type: 'link'
            });

            wx.onMenuShareTimeline({
                title: 'Headoffer--专业招聘平台----推荐有奖！',  
                desc: '搭起企业和专业猎头的桥梁，为企业招募英才。',  
                link: 'http://www.tiaonali.com${ctx}/wechat/hunter/shareservice.page',  
                imgUrl: 'http://www.tiaonali.com${ctx}/resources/images/sharelogo.jpg'
            });

            wx.showOptionMenu();
        });
    });

</script>
</body>
</html>